@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
    #titlebar {
        display: block;
        position: fixed;
        height: 32px;
        width: calc(100% - 0px); /*Compensate for body 1px border*/
        background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%)
    }
    
        #titlebar #drag-region {
            width: 100%;
            height: 100%;
            -webkit-app-region: drag;
        }
    
    #window-controls {
        display: grid;
        grid-template-columns: repeat(3, 46px);
        position: absolute;
        top: 0;
        right: 0;
        height: 100%;
    }
    
        #window-controls .button {
            grid-row: 1 / span 1;
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            height: 100%;
        }
    
    #min-button {
        grid-column: 1;
    }
    
    #max-button, #restore-button {
        grid-column: 2;
    }
    
    #close-button {
        grid-column: 3;
    }
    
    @media (-webkit-device-pixel-ratio: 1.5), (device-pixel-ratio: 1.5), (-webkit-device-pixel-ratio: 2), (device-pixel-ratio: 2), (-webkit-device-pixel-ratio: 3), (device-pixel-ratio: 3) {
        #window-controls .icon {
            width: 10px;
            height: 10px;
        }
    }
    
    #window-controls {
        -webkit-app-region: no-drag;
    }
    
        #window-controls .button {
            user-select: none;
        }
    
            #window-controls .button:hover {
                background: rgba(255,255,255,0.1);
            }
    
            #window-controls .button:active {
                background: rgba(255,255,255,0.2);
            }
    
    #close-button:hover {
        background: #E81123 !important;
    }
    
    #close-button:active {
        background: #F1707A !important;
    }
    
        #close-button:active .icon {
            filter: invert(1);
        }
    
    #restore-button {
        display: none !important;
    }
    
    #titlebar #drag-region {
        display: grid;
        grid-template-columns: auto 138px;
    }
    
    #window-title {
        grid-column: 1;
        display: flex;
        align-items: center;
        margin-left: 8px;
        overflow: hidden;
        font-family: "Segoe UI", sans-serif;
        font-size: 12px;
    }
    
        #window-title span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            line-height: 1.5;
        }
    
    .maximized #titlebar {
        width: 100%;
        padding: 0;
    }
    
    .maximized #window-title {
        margin-left: 12px;
    }
    
    .maximized #restore-button {
        display: flex !important;
    }
    
    .maximized #max-button {
        display: none;
    }